#include "stdafx.h"
#include "StringHelper.h"


StringHelper::StringHelper(void)
{
}


StringHelper::~StringHelper(void)
{
}


char *StringHelper::valueOfInt(int number){
	int i=10;
	int n=1;
	while(number/i!=0){
		i*=10;
		n++;
	}
	char *num=new char[n];
	i=i/10;
	for(int k=0;k<n;k++){
		num[k]='0'+number/i;
		number-=(number/i)*i;
		i=i/10;
	}
	num[n]='\0';
	return num;
}
